home *** CD-ROM | disk | FTP | other *** search
- /******************************************************************************
- *
- * NSSDC/CDF Header file for CDFlist.
- *
- * Version 2.0, 4-Mar-92, ST Systems (STX)
- *
- * Modification history:
- *
- * V1.0 29-Jan-91, H Leckner Original version (for CDF V2.0).
- * V1.1 26-Mar-91, H Leckner Fix for possible char array overwrite.
- * V1.2 25-Jun-91, H Leckner CDF V2.1 enhancements. 'cdflist_vid_def.h'
- * and 'cdflist_vid_init.h' included.
- * V1.3 9-Jul-91, H Leckner Fix for filters.
- * V1.4 11-Sep-91, J Love Modified for IBM-PC port.
- * V1.5 4-Oct-91, H Leckner Added ability to select more than 8 vars.
- * V1.6 15-Oct-91, H Leckner Changed for Curses on IBM-RS6000.
- * V1.7 05-Nov-91, H Leckner Changed for IBM-PC, also added function
- * protoypes.
- * V2.0 4-Mar-92 H Leckner IBM PC port (and HP 9000). CDF V2.2.
- *
- ******************************************************************************/
-
- #if defined(vms)|defined(ultrix)|defined(AIX)|defined(__MSDOS__)|defined(hpux)
- #define CONTINUE 10
- #else
- #if defined(unix)
- #define CONTINUE 13
- #endif
- #endif
- #define NOCONTINUE -10
- #define PERIOD 46
- #define DUPLICATE 0
- #define OK_RESP -1
- #define YES 89
- #define yes 121
- #define NO 78
- #define no 110
- #define MINMAX_SIZE 15
- #define EPOCH_WIDTH 25
- #define TERMIN 1
- #define FILEOUT 2
- #define TERMFILE 3
- #define CDFOUT 4
- #define MINMAX 1
- #define LIST 2
- #define NOERASE 0
- #define ERASE 1
- #define RINGBELL -1
- #define NOBELL 0
- #define MENU 1
- #define HELP_MENU 2
- #define MIN_MAX_ERROR 0
- #define SCALAR -1
- #define SELECT_ALL 1
- #define DONE 0
- #define MANUAL 0
- #define AUTO 1
- #define DIRECTORY 2
- #define NOPAUSE 0
- #define PAUSE 1
- #define LIST_DATA 0
- #define CDF_FIELD 1
- #define OUT_FIELD 2
- #define VAR_FIELD 3
- #define SPECIAL_OPT_FIELD 4
- #define HELP_FIELD 5
- #define EXIT 6
- #define EPOCHFORMAT_FIELD 1
- #define VARFORMAT_FIELD 2
- #define FILTER_FIELD 3
- #define FILLVALUE_FIELD 4
- #define MINMAX_FIELD 5
- #define NOTTHERE -1
- #define CDFLIST_MAX_VAR_LENGTH 19
- #define MULTIPLE -1
- #define PAGEUP 85
- #define PAGEup 117
- #define PAGEdown 68
- #define PAGEDOWN 100
- #define QUIT 81
- #define quit 113
- #define EPOCHFORM_DEF 1
- #define EPOCHFORM_1 2
- #define FORMAT 1
- #define NOFORMAT 2
- #define useMINMAX 1
- #define NOuseMINMAX 2
- #define FILTER 1
- #define NOFILTER 2
- #define FILLVAL 1
- #define NOFILLVAL 2
- #define CNTRLM "CTL-F=Action "
- #define CNTRLW "CTL-W=Redraw "
- #define CNTRLD "CTL-D = Delete to end-of-line "
- #define CNTRLN "CTL-N = Move to end-of-line "
- #define RET "RETURN=Select "
- #define HLP "Help=CTL-F " /* V1.1 */
- #define DEL "DEL=Delete "
- #define PUP "U=page up "
- #define PDOWN "D=page down "
- #define Qdes "Q=quit popup "
- #define UP "UP_ARROW =Up "
- #define DOWN "DOWN_ARROW=Down "
- #define LEFT "LEFT_ARROW=Back "
- #define NEXT "RETURN=Next Field "
- #define BACK "CTL-B =Back Field "
- #define RIGHT"RIGHT_ARROW=next "
- #define CNTRLP "CTL-P=pop-up"
- #define C (*CDF)
- #define NC (*new_CDF)
- #define S (*screen)
- #define V variables[var_num]
- #define VA variables[var_num].attr[attr_num]
- #define VN (*variables)[var_num]
- #define SO Special_options
- struct GLOBAL_struct
- {
- int save_id;
- WINDOWid CDF_vid;
- WINDOWid VAR_vid;
- WINDOWid KEY_vid;
- WINDOWid MES_vid;
- WINDOWid OUT_vid;
- WINDOWid VARSELECT_vid;
- WINDOWid DIR_vid;
- WINDOWid DIS_vid;
- WINDOWid FIELD_vid;
- WINDOWid HELP_vid;
- WINDOWid SPECIAL_vid;
- WINDOWid EPOCHFORMAT_vid;
- WINDOWid VARFORMAT_vid;
- WINDOWid MINMAX_vid;
- WINDOWid FILTER_vid;
- WINDOWid FILLVALUE_vid;
-
- };
- struct vid_struct
- {
- int row;
- int col;
- char label[80];
- int field_col;
- };
- struct attr_struct
- {
- char attr_mnemonic[CDF_ATTR_NAME_LEN];
- long int data_type;
- long int num_elements;
- long int max_entry;
- long int attr_scope;
- };
- struct variable_struct
- {
- char var_mnemonic[CDF_VAR_NAME_LEN];
- long int data_type;
- long int num_bytes;
- long int record_variance;
- long int dim_variances[CDF_MAX_DIMS];
- long int var_num;
- long int out_var_num;
- double min;
- double max;
- double filter_min;
- double filter_max;
- long int filter;
- long int minmax_flag;
- long int var_mnemonic_len;
- char header_name[80];
- long int scalar;
- long int dim_num;
- long int num_values;
- CDFstatus rcode;
- double *bin_value;
- char *char_value;
- };
- struct CDF_struct
- {
- char CDF_name[CDF_PATHNAME_LEN];
- CDFid CDF_id;
- long int max_record_num;
- long int num_dims;
- long int dim_sizes[CDF_MAX_DIMS];
- long int num_vars;
- long int num_attrs;
- long int output;
- long int max_var_len;
- long version;
- long release;
- char text[CDF_DOCUMENT_LEN];
- long encoding;
- long majority;
- char file_name[20];
- struct attr_struct *attr;
- };
- struct SPECIAL_OPTION_struct
- {
- int EPOCH_format;
- int EPOCH_output_len[2];
- int variable_format;
- int format_attr;
- int filters;
- int fill_values;
- int fillval_attr;
- int minmax;
- };
-
- union mixed
- {
- double r8;
- float r4;
- long int i4;
- unsigned long int ui4;
- short int i2;
- unsigned short int ui2;
- Schar byte;
- Uchar ubyte;
- char *string;
- };
- #if defined(CDFLIST)
- struct EPOCH ep;
- struct SPECIAL_OPTION_struct Special_options;
- #else
- extern struct EPOCH ep;
- extern struct SPECIAL_OPTION_struct Special_options;
- #endif
-
- /******************************************************************************
- * Contents of 'cdflist_vid_def.h' start here.
- ******************************************************************************/
-
- #if defined (vms)
- #define CDF_ROWS 4
- #define CDF_COLUMNS 78
- #define CDF_ROW_PASTE 2
- #define CDF_COL_PASTE 2
- #define CDF_NAME_ROW 1
- #define CDF_NAME_COL 11
- #define CDF_NAME_LENGTH 68
- #define CDF_NUM_ELEMENTS 7
- #define VAR_ROWS 9
- #define VAR_COLUMNS 78
- #define VAR_ROW_PASTE 8
- #define VAR_COL_PASTE 2
- #define VAR_NUM_ELEMENTS 27
- #define VAR_MINMAX_LEN 14
- #define KEY_ROWS 2
- #define KEY_COLUMNS 78
- #define KEY_ROW_PASTE 19
- #define KEY_COL_PASTE 2
- #define KEY_NUM_ELEMENTS 1
- #define MES_ROWS 1
- #define MES_COLUMNS 78
- #define MES_ROW_PASTE 23
- #define MES_COL_PASTE 2
- #define MES_NUM_ELEMENTS 1
- #define OUT_ROWS 4
- #define OUT_COLUMNS 13
- #define OUT_ROW_PASTE 6
- #define OUT_COL_PASTE 64
- #define OUT_NUM_ELEMENTS 4
- #define OUT_NAME_ROW 4
- #define OUT_NAME_COL 64
- #define OUT_NAME_LEN 14
- #define FIELD_ROWS 7
- #define FIELD_COLUMNS 22
- #define FIELD_ROW_PASTE 3
- #define FIELD_COL_PASTE 30
- #define FIELD_NUM_ELEMENTS 7
- #define DIS_ROWS 8
- #define DIS_COLUMNS 16
- #define DIS_ROW_PASTE 9
- #define DISMIN_COL_PASTE 26
- #define DISMAX_COL_PASTE 52
- #define DIR_ROWS 10
- #define DIR_COLUMNS 27
- #define DIR_ROW_PASTE 2
- #define DIR_COL_PASTE 52
- #define EPOCH_ROWS 1
- #define EPOCH_COLUMNS 24
- #define EPOCH_ROW_PASTE 8
- #define EPOCH_NUM_ELEMENTS 1
- #define VARSELECT_ROWS 8
- #define VARSELECT_COLUMNS 58
- #define VARSELECT_ROW_PASTE 9
- #define VARSELECT_COL_PASTE 20
- #define VARSELECT_NUM_ELEMENTS 8
- #define HELP_ROWS 10
- #define HELP_COLUMNS 78
- #define HELP_ROW_PASTE 6
- #define HELP_COL_PASTE 2
-
- #define SPECIAL_ROWS 15
- #define SPECIAL_COLUMNS 69
- #define SPECIAL_ROW_PASTE 3
- #define SPECIAL_COL_PASTE 5
- #define EPOCHFORMAT_ROWS 2
- #define EPOCHFORMAT_COLUMNS 29
- #define EPOCHFORMAT_ROW_PASTE 5
- #define EPOCHFORMAT_COL_PASTE 9
- #define EPOCHFORMAT_NUM_ELEMENTS 2
- #define VARFORMAT_ROWS 2
- #define VARFORMAT_COLUMNS 27
- #define VARFORMAT_ROW_PASTE 5
- #define VARFORMAT_COL_PASTE 44
- #define VARFORMAT_NUM_ELEMENTS 2
- #define FILTER_ROWS 2
- #define FILTER_COLUMNS 26
- #define FILTER_ROW_PASTE 11
- #define FILTER_COL_PASTE 9
- #define FILTER_NUM_ELEMENTS 2
- #define FILLVALUE_ROWS 2
- #define FILLVALUE_COLUMNS 23
- #define FILLVALUE_ROW_PASTE 11
- #define FILLVALUE_COL_PASTE 44
- #define FILLVALUE_NUM_ELEMENTS 2
- #define MINMAX_ROWS 2
- #define MINMAX_COLUMNS 33
- #define MINMAX_ROW_PASTE 16
- #define MINMAX_COL_PASTE 24
- #define MINMAX_NUM_ELEMENTS 2
-
- #define CDFNAME_ELEMENT_NUM 1
- #define NUMDIM_ELEMENT_NUM 2
- #define DIMSIZ_ELEMENT_NUM 3
- #define NUMVAR_ELEMENT_NUM 4
- #define NUMREC_ELEMENT_NUM 5
- #define OUT_ELEMENT_NUM 6
- #define OUT_NAME_ELEMENT_NUM
- #define ROW_OFFSET 0
- #define COL_OFFSET 0
- #endif
-
- #if defined(unix) | defined(ultrix)
- #define CDF_ROWS 6
- #define CDF_COLUMNS 79
- #define CDF_ROW_PASTE 0
- #define CDF_COL_PASTE 1
- #define CDF_NAME_ROW 1
- #define CDF_NAME_COL 11
- #define CDF_NAME_LENGTH 68
- #define CDF_NUM_ELEMENTS 7
- #define VAR_ROWS 11
- #define VAR_COLUMNS 79
- #define VAR_ROW_PASTE 6
- #define VAR_COL_PASTE 1
- #define VAR_NUM_ELEMENTS 27
- #define VAR_MINMAX_LEN 14
- #define KEY_ROWS 4
- #define KEY_COLUMNS 79
- #define KEY_ROW_PASTE 17
- #define KEY_COL_PASTE 1
- #define KEY_NUM_ELEMENTS 1
- #define MES_ROWS 3
- #define MES_COLUMNS 79
- #define MES_ROW_PASTE 21
- #define MES_COL_PASTE 1
- #define MES_NUM_ELEMENTS 1
- #define OUT_ROWS 6
- #define OUT_COLUMNS 15
- #define OUT_ROW_PASTE 4
- #define OUT_COL_PASTE 64
- #define OUT_NUM_ELEMENTS 4
- #define OUT_NAME_ROW 4
- #define OUT_NAME_COL 64
- #define OUT_NAME_LEN 14
- #define FIELD_ROWS 9
- #define FIELD_COLUMNS 24
- #define FIELD_ROW_PASTE 1
- #define FIELD_COL_PASTE 29
- #define FIELD_NUM_ELEMENTS 7
- #define DIS_ROWS 10
- #define DIS_COLUMNS 17
- #define DIS_ROW_PASTE 7
- #define DISMIN_COL_PASTE 25
- #define DISMAX_COL_PASTE 51
- #define DIR_ROWS 12
- #define DIR_COLUMNS 28
- #define DIR_ROW_PASTE 0
- #define DIR_COL_PASTE 51
- #define EPOCH_ROWS 3
- #define EPOCH_COLUMNS 25
- #define EPOCH_ROW_PASTE 6
- #define EPOCH_NUM_ELEMENTS 1
- #define VARSELECT_ROWS 10
- #define VARSELECT_COLUMNS 59
- #define VARSELECT_ROW_PASTE 7
- #define VARSELECT_COL_PASTE 19
- #define VARSELECT_NUM_ELEMENTS 8
- #define HELP_ROWS 12
- #define HELP_COLUMNS 79
- #define HELP_ROW_PASTE 4
- #define HELP_COL_PASTE 1
- #define SPECIAL_ROWS 17
- #define SPECIAL_COLUMNS 70
- #define SPECIAL_ROW_PASTE 1
- #define SPECIAL_COL_PASTE 4
- #define EPOCHFORMAT_ROWS 4
- #define EPOCHFORMAT_COLUMNS 30
- #define EPOCHFORMAT_ROW_PASTE 3
- #define EPOCHFORMAT_COL_PASTE 8
- #define EPOCHFORMAT_NUM_ELEMENTS 2
- #define VARFORMAT_ROWS 4
- #define VARFORMAT_COLUMNS 28
- #define VARFORMAT_ROW_PASTE 3
- #define VARFORMAT_COL_PASTE 43
- #define VARFORMAT_NUM_ELEMENTS 2
- #define FILTER_ROWS 4
- #define FILTER_COLUMNS 27
- #define FILTER_ROW_PASTE 9
- #define FILTER_COL_PASTE 8
- #define FILTER_NUM_ELEMENTS 2
- #define FILLVALUE_ROWS 4
- #define FILLVALUE_COLUMNS 24
- #define FILLVALUE_ROW_PASTE 9
- #define FILLVALUE_COL_PASTE 43
- #define FILLVALUE_NUM_ELEMENTS 2
- #define MINMAX_ROWS 4
- #define MINMAX_COLUMNS 34
- #define MINMAX_ROW_PASTE 14
- #define MINMAX_COL_PASTE 23
- #define MINMAX_NUM_ELEMENTS 2
-
-
- #define CDFNAME_ELEMENT_NUM 1
- #define NUMDIM_ELEMENT_NUM 2
- #define DIMSIZ_ELEMENT_NUM 3
- #define NUMVAR_ELEMENT_NUM 4
- #define NUMREC_ELEMENT_NUM 5
- #define OUT_ELEMENT_NUM 6
- #define OUT_NAME_ELEMENT_NUM 7
- #define ROW_OFFSET 2
- #define COL_OFFSET 2
- #endif
- #if defined(__MSDOS__)
- #define CDF_ROWS 6
- #define CDF_COLUMNS 79
- #define CDF_ROW_PASTE 0
- #define CDF_COL_PASTE 0
- #define CDF_NAME_ROW 1
- #define CDF_NAME_COL 11
- #define CDF_NAME_LENGTH 68
- #define CDF_NUM_ELEMENTS 7
- #define VAR_ROWS 11
- #define VAR_COLUMNS 79
- #define VAR_ROW_PASTE 6
- #define VAR_COL_PASTE 0
- #define VAR_NUM_ELEMENTS 27
- #define VAR_MINMAX_LEN 14
- #define KEY_ROWS 4
- #define KEY_COLUMNS 79
- #define KEY_ROW_PASTE 17
- #define KEY_COL_PASTE 0
- #define KEY_NUM_ELEMENTS 1
- #define MES_ROWS 3
- #define MES_COLUMNS 79
- #define MES_ROW_PASTE 21
- #define MES_COL_PASTE 0
- #define MES_NUM_ELEMENTS 1
- #define OUT_ROWS 6
- #define OUT_COLUMNS 15
- #define OUT_ROW_PASTE 4
- #define OUT_COL_PASTE 63
- #define OUT_NUM_ELEMENTS 4
- #define OUT_NAME_ROW 4
- #define OUT_NAME_COL 64
- #define OUT_NAME_LEN 14
- #define FIELD_ROWS 9
- #define FIELD_COLUMNS 24
- #define FIELD_ROW_PASTE 1
- #define FIELD_COL_PASTE 28
- #define FIELD_NUM_ELEMENTS 7
- #define DIS_ROWS 10
- #define DIS_COLUMNS 17
- #define DIS_ROW_PASTE 7
- #define DISMIN_COL_PASTE 24
- #define DISMAX_COL_PASTE 51
- #define DIR_ROWS 12
- #define DIR_COLUMNS 28
- #define DIR_ROW_PASTE 0
- #define DIR_COL_PASTE 50
- #define EPOCH_ROWS 3
- #define EPOCH_COLUMNS 25
- #define EPOCH_ROW_PASTE 6
- #define EPOCH_NUM_ELEMENTS 1
- #define VARSELECT_ROWS 10
- #define VARSELECT_COLUMNS 59
- #define VARSELECT_ROW_PASTE 7
- #define VARSELECT_COL_PASTE 18
- #define VARSELECT_NUM_ELEMENTS 8
- #define HELP_ROWS 12
- #define HELP_COLUMNS 79
- #define HELP_ROW_PASTE 4
- #define HELP_COL_PASTE 1
- #define SPECIAL_ROWS 17
- #define SPECIAL_COLUMNS 70
- #define SPECIAL_ROW_PASTE 1
- #define SPECIAL_COL_PASTE 4
- #define EPOCHFORMAT_ROWS 4
- #define EPOCHFORMAT_COLUMNS 30
- #define EPOCHFORMAT_ROW_PASTE 3
- #define EPOCHFORMAT_COL_PASTE 8
- #define EPOCHFORMAT_NUM_ELEMENTS 2
- #define VARFORMAT_ROWS 4
- #define VARFORMAT_COLUMNS 28
- #define VARFORMAT_ROW_PASTE 3
- #define VARFORMAT_COL_PASTE 43
- #define VARFORMAT_NUM_ELEMENTS 2
- #define FILTER_ROWS 4
- #define FILTER_COLUMNS 27
- #define FILTER_ROW_PASTE 9
- #define FILTER_COL_PASTE 8
- #define FILTER_NUM_ELEMENTS 2
- #define FILLVALUE_ROWS 4
- #define FILLVALUE_COLUMNS 24
- #define FILLVALUE_ROW_PASTE 9
- #define FILLVALUE_COL_PASTE 43
- #define FILLVALUE_NUM_ELEMENTS 2
- #define MINMAX_ROWS 4
- #define MINMAX_COLUMNS 34
- #define MINMAX_ROW_PASTE 14
- #define MINMAX_COL_PASTE 23
- #define MINMAX_NUM_ELEMENTS 2
-
-
- #define CDFNAME_ELEMENT_NUM 1
- #define NUMDIM_ELEMENT_NUM 2
- #define DIMSIZ_ELEMENT_NUM 3
- #define NUMVAR_ELEMENT_NUM 4
- #define NUMREC_ELEMENT_NUM 5
- #define OUT_ELEMENT_NUM 6
- #define OUT_NAME_ELEMENT_NUM 7
- #define ROW_OFFSET 2
- #define COL_OFFSET 2
- #endif
-
- /******************************************************************************
- * Contents of 'cdflist_vid_init.h' start here.
- ******************************************************************************/
- #if defined(CDFLIST)
- struct vid_struct CDF_display[CDF_NUM_ELEMENTS] =
- {
- { 1, 2, "CDF Name ", 11},
- { 3, 2, "Number of Dimensions ", 23},
- { 4, 2, "Dimension Sizes ", 18},
- { 3, 29, "Number of Variables ",49},
- { 4, 29, "Number of Records ", 47},
- { 3, 57, "Output ",64},
- { 4, 54, "File name ",64},
- };
- #else
- extern struct vid_struct CDF_display[CDF_NUM_ELEMENTS];
- #endif
- static char VAR_label[] = "Variable Selection";
- #if defined(CDFLIST)
- struct vid_struct init_display[VAR_NUM_ELEMENTS];
- #else
- extern struct vid_struct init_display[VAR_NUM_ELEMENTS];
- #endif
-
- #if defined(CDFLIST)
- struct vid_struct KEY_display[KEY_NUM_ELEMENTS] =
- {
- { 1, 1, "", 1},
- };
- #else
- extern struct vid_struct KEY_display[KEY_NUM_ELEMENTS];
- #endif
-
- #if defined(CDFLIST)
- struct vid_struct MES_display[MES_NUM_ELEMENTS] =
- {
- { 1, 1, "", 1},
- };
- #else
- extern struct vid_struct MES_display[MES_NUM_ELEMENTS];
- #endif
-
- #if defined(CDFLIST)
- struct vid_struct OUT_display[OUT_NUM_ELEMENTS] =
- {
- { 1, 1, "Terminal ",1},
- { 2, 1, "File ",1},
- { 3, 1, "Terminal/File",1},
- { 4, 1, "CDF ",1},
- };
- #else
- extern struct vid_struct OUT_display[OUT_NUM_ELEMENTS];
- #endif
- #if defined(CDFLIST)
- struct vid_struct FIELD_display[FIELD_NUM_ELEMENTS] =
- {
- { 1, 1, "Generate Output ",1},
- { 2, 1, "Select Input CDF Name ",1},
- { 3, 1, "Select Output Device ",1},
- { 4, 1, "Select Variables ",1},
- { 5, 1, "Select Special Options",1},
- { 6, 1, "Help ",1},
- { 7, 1, "Exit ",1},
- };
- #else
- extern struct vid_struct FIELD_display[FIELD_NUM_ELEMENTS];
- #endif
- #if defined(CDFLIST)
- struct vid_struct EPOCHFORMAT_display[EPOCHFORMAT_NUM_ELEMENTS] =
- {
- { 1, 1, "( ) DD-MMM-YYYY HH:MM:SS.MSC",1},
- { 2, 1, "( ) YYYYMMDD.TTTTTTT ",1},
- };
- struct vid_struct VARFORMAT_display[VARFORMAT_NUM_ELEMENTS] =
- {
- { 1, 1, "( ) CDF FORMAT attribute",1},
- { 2, 1, "( ) CDFLIST defaults ",1},
-
- };
- struct vid_struct MINMAX_display[MINMAX_NUM_ELEMENTS] =
- {
- { 1, 1, "( ) Display min/max values",1},
- { 2, 1, "( ) Don't Display min/max values",1},
- };
- struct vid_struct FILTER_display[FILTER_NUM_ELEMENTS] =
- {
- { 1, 1, "( ) Use min/max values",1},
- { 2, 1, "( ) Ignore min/max values",1},
- };
- struct vid_struct FILLVALUE_display[FILLVALUE_NUM_ELEMENTS] =
- {
- { 1, 1, "( ) Use Fill values",1},
- { 2, 1, "( ) Ignore Fill Values",1},
- };
- #else
- extern struct vid_struct EPOCHFORMAT_display[EPOCHFORMAT_NUM_ELEMENTS];
- extern struct vid_struct VARFORMAT_display[VARFORMAT_NUM_ELEMENTS];
- extern struct vid_struct MINMAX_display[MINMAX_NUM_ELEMENTS];
- extern struct vid_struct FILTER_display[FILTER_NUM_ELEMENTS];
- extern struct vid_struct FILLVALUE_display[FILLVALUE_NUM_ELEMENTS];
- #endif
- #if !defined(CDFLIST)
- static char KEY_label[] = "Keypad Definitions";
- static char MES_label[] = "Message Buffer";
- static char NO_label[] = "";
- static char SPECIAL_label[] = "CDFLIST Special Options";
- static char EPOCHFORMAT_label[] = "EPOCH display format";
- /*
- static char VARFORMAT_label[] = "Variable display format";
- static char MINMAX_label[] = "Variable Selection";
- static char FILTER_label[] = "Filtering";
- static char FILLVALUE_label[] = "Fill Value usage";
- */
- #endif
- #if defined(CDFLIST)
- FILE *HELP_ptr;
- #else
- extern FILE *HELP_ptr;
- #endif
- #if defined(CDFLIST)
- #ifdef vms
- static char default_name[] = "[]";
- #endif
- #ifdef unix
- static char default_name[] = "./";
- #endif
- #if defined(__MSDOS__)
- static char default_name[] = ".";
- #endif
- #endif
- #if defined(vms) | defined(__MSDOS__)
- void init_var_display(struct vid_struct *display, long int num_vars);
- Boolean check_epoch(char str[], double *scale);
- int precision(double num);
- void CDFLIST_save_screen (struct GLOBAL_struct *screen);
- void CDFLIST_restore_screen(struct GLOBAL_struct *screen);
- int CDFLIST_CDF_name(struct GLOBAL_struct *screen,
- struct CDF_struct *CDF,
- long int *field_num, long int *input_type);
- long int get_var_num(struct variable_struct possible[],
- char *mnemonic, long int num_poss);
- void header(char *mnemonic, long int len, long int data_type,
- long int string_size, char header_name[]);
- long int print_error(struct GLOBAL_struct *screen, CDFstatus rcode);
- CDFstatus CDFLIST_open(struct CDF_struct *CDF,
- struct variable_struct **variables,
- struct variable_struct **select,
- struct vid_struct **VAR_display,
- struct vid_struct **SELECT_display,
- union mixed **data_values);
- void CDFLIST_get_data(struct CDF_struct *CDF, struct variable_struct select[],
- long int num_select, long int record_num,
- long int indices[10], union mixed data_values[]);
- CDFstatus CDFLIST_alloc_STRING(struct variable_struct select[],
- long int num_select, union mixed data_values[]);
- void CDFLIST_free_STRING(struct variable_struct select[],
- long int num_select, union mixed data_values[]);
- long int CDFLIST_create_new_CDF(struct GLOBAL_struct *screen,
- struct CDF_struct *CDF,
- struct variable_struct select[],
- long int num_select,
- struct CDF_struct *new_CDF);
- CDFstatus put_attr_value(CDFid in_CDF_id, long int attr_num, long int entry_num,
- long int out_entry_num, CDFid out_CDF_id,
- long int data_type, long int num_elements);
- void CDFLIST_new_CDF_info(struct CDF_struct *CDF,
- struct variable_struct select[],long int num_select,
- struct CDF_struct *new_CDF);
- void CDFLIST_list_data(struct GLOBAL_struct *screen,
- struct CDF_struct *CDF,
- struct variable_struct select[],
- long int num_select,long int num_filter,
- union mixed *data_values, FILE *fptr);
- void next_indices(long int x[],long int num_dims, long int dim_sizes[],
- long int *copy_complete);
- void CDFLIST_check_filters(struct variable_struct select[], long int num_select,
- struct variable_struct variables[],
- long int num_vars, long int *mult_flag);
- void CDFLIST_add_independent(struct variable_struct select[],
- long int *num_select,
- struct variable_struct variables[],
- long int num_vars);
- void CDFLIST_select_VAR(struct GLOBAL_struct *screen,
- int num_rows, int num_cols,
- struct vid_struct display[],
- struct vid_struct SELECT_display[],
- struct variable_struct possible[],
- long int num_poss,
- struct variable_struct *select,
- long int *num_select, long int *in_field_num);
- void get_field(char row_data[], int col, int max_len,
- char value[], long int *first_blank, long int *value_entered);
- void next_field(long int *col_field, long int *select_num, long int *start_page,
- int *row, long int *scroll, long int num_poss);
- long int check_var(struct vid_struct display[],
- char var[], long int num_poss);
- void CDFLIST_menu_keydef(struct GLOBAL_struct *screen);
- void CDFLIST_special_keydef(struct GLOBAL_struct *screen);
- void CDFLIST_load_discrete(char values[], long int num_values,
- long int col_field, struct vid_struct *DIS_display,
- long int *num_rows, long int *paste_col);
- CDFstatus CDFLIST_read_VAR(struct vid_struct display[],
- struct variable_struct possible[],
- long int num_poss,
- struct variable_struct select[],
- long int *num_select);
- void CDFLIST_filter(struct variable_struct select[],
- long int num_select, union mixed data_values[],
- long int check_scalar, long int *valid);
- CDFstatus CDFLIST_put_CDF(struct CDF_struct *new_CDF,
- long int record_num, long int indices[],
- struct variable_struct select[],
- long int num_select, union mixed data_values[]);
- CDFstatus CDFLIST_get_discrete(long int CDF_id, long int dim_num,
- long int var_id, long int data_type,
- long int num_values,
- double bin_values[], char *char_values);
- void CDFLIST_output(struct GLOBAL_struct *screen, struct CDF_struct *CDF,
- FILE **out_file, long int *field_num);
- void CDFLIST_default_name(char string[], char default_name[]);
- void CDFLIST_clear_row(WINDOWid vid,struct vid_struct display[],
- int start_elem, int end_elem, int end_col);
- void CDFLIST_file_header(struct CDF_struct *CDF,
- struct variable_struct select[],
- long int num_select, FILE *fptr);
- void CDFLIST_help(struct GLOBAL_struct *screen);
- int lastc(char *buf);
- void CDFLIST_field_menu(struct GLOBAL_struct *screen, long int *option);
- void CDFLIST_open_screen(struct GLOBAL_struct *screen);
- void CDFLIST_special_options(struct GLOBAL_struct *screen);
- int CDFLIST_special_option_menu(WINDOWid vid, int *value, int num_rows);
- void CDFLIST_disp_opt(WINDOWid vid, int value, int num_rows);
-
- void CDFLIST_select_menu_item(WINDOWid vid,
- WINDOWid MES_vid, long int *rvalue,
- struct vid_struct display[],
- long int num_elements, int num_rows,
- int num_columns, int row_start,
- int col_start, int mode,
- int *termcode);
- void CDFLIST_CDF_info(struct GLOBAL_struct *screen,
- struct CDF_struct *CDF,
- struct vid_struct CDF_display[],
- struct vid_struct OUT_display[]);
- void load_vid(WINDOWid vid, struct vid_struct display[], int start_elem,
- int num_elements, char label[]);
- void load_vars(WINDOWid vid, struct vid_struct display[], long int start_num,
- long int max_vars);
- void load_vid_element(WINDOWid vid, struct vid_struct display[],
- int element_num);
- void CDFLIST_load_keydef(WINDOWid vid, char line1[], char line2[]);
- void CDFLIST_put_selection(WINDOWid vid, struct vid_struct display[],
- int element_num, char selection[],
- int field_len, int video_type);
- void CDFLIST_put_select_row(WINDOWid vid, struct vid_struct display[],
- int row, int element_num,
- char selection[], int field_len,
- int video_type);
- void CDFLIST_put_value(WINDOWid vid, struct vid_struct display[],
- int row, int element_num, double bin_value);
- void CDFLIST_put_TIME(WINDOWid vid, struct vid_struct display[],
- int row, int element_num, double time);
- void CDFLIST_put_message(WINDOWid vid, char message[], int rbell,
- int video_type, int pause);
- void load_menu(WINDOWid vid, struct vid_struct display[],
- int num_elements, char label[]);
- void zero_replace(char string[]);
- void CDFLIST_check_name(char string[]);
- void CDFLIST_left_justify (char field[]);
- void CDFLIST_print_header(struct variable_struct select[],
- long int num_select, long int max_term,
- long int output, FILE *fptr, long int first);
- void CDFLIST_print_data(struct variable_struct select[],
- union mixed data_values[], long int num_select,
- long int max_term, long int output, FILE *fptr);
- void CDFLIST_var_menus(struct GLOBAL_struct *screen, struct CDF_struct *CDF,
- int *var_rows, int *var_columns);
- CDFstatus CDFLIST_close(struct CDF_struct *CDF);
- void CDFLIST_close_screen(struct GLOBAL_struct *screen);
- double r4_r8(float *r4);
- void CDFLIST_valid_minmax (CDFid CDF_id, long attr_num,
- long field_num, double *scale, CDFstatus *rcode);
- long get_1char (char *); /*jtl*/
- #endif
- #if defined(__MSDOS__)
- void CDFLIST_draw_main_screen(struct GLOBAL_struct *screen);
- #endif
-
-
- #if defined (unix)
- Boolean check_epoch();
- int precision();
- int CDFLIST_CDF_name();
- long int get_var_num();
- void header();
- long int print_error();
- CDFstatus CDFLIST_open();
- void CDFLIST_get_data();
- CDFstatus CDFLIST_alloc_STRING();
- void CDFLIST_free_STRING();
- long int CDFLIST_create_new_CDF();
- CDFstatus put_attr_value();
- void CDFLIST_new_CDF_info();
- void CDFLIST_list_data();
- void next_indices();
- void CDFLIST_check_filters();
- void CDFLIST_add_independent();
- void CDFLIST_select_VAR();
- void get_field();
- void next_field();
- long int check_var();
- void CDFLIST_menu_keydef();
- void CDFLIST_special_keydef();
- void CDFLIST_load_discrete();
- CDFstatus CDFLIST_read_VAR();
- void CDFLIST_filter();
- CDFstatus CDFLIST_put_CDF();
- CDFstatus CDFLIST_get_discrete();
- void CDFLIST_output();
- void CDFLIST_default_name();
- void CDFLIST_clear_row();
- void CDFLIST_file_header();
- void CDFLIST_help();
- int lastc();
- void CDFLIST_field_menu();
- void CDFLIST_open_screen();
- void CDFLIST_special_options();
- int CDFLIST_special_option_menu();
- void CDFLIST_disp_opt();
- void CDFLIST_draw_main_screen();
- void CDFLIST_select_menu_item();
- void CDFLIST_CDF_info();
- void load_vid();
- void load_vars();
- void load_vid_element();
- void CDFLIST_load_keydef();
- void CDFLIST_put_selection();
- void CDFLIST_put_select_row();
- void CDFLIST_put_value();
- void CDFLIST_put_TIME();
- void CDFLIST_put_message();
- void load_menu();
- void zero_replace();
- void CDFLIST_check_name();
- void CDFLIST_left_justify ();
- void CDFLIST_print_header();
- void CDFLIST_print_data();
- void CDFLIST_var_menus();
- CDFstatus CDFLIST_close();
- void CDFLIST_close_screen();
- double r4_r8();
- void CDFLIST_valid_minmax ();
- void init_var_display();
- void input_field(); /*jtl*/
- long get_1char(); /*jtl*/
- #endif
-